using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NewAndong.Model;
using NewAndong.Service;
using Leeder.Business;

namespace NewAndong.Business
{
    /// <summary>
    /// 
    /// </summary>
   public class TriaItemBLL : BaseBLL<TriaItemModel, TriaItemService>
   {
        public TriaItemBLL()
        {
            Service = new TriaItemService();
        }
        public TriaItemModel GetModel()
        {
            return Service.Query(p => (p.IsPhantom != true || p.IsPhantom == null)).ActivedObj.FirstOrDefault();
        }

        public List<TriaItemModel> GetModelList()
        {
            return Service.Query(p => (p.IsPhantom != true || p.IsPhantom == null)).ActivedObj;
        }
    }
}
